﻿<UserControl x:Class="MediaAssistant.Controls.MovieMiddleToolBar.MovieMiddleToolBarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Converters="clr-namespace:MediaAssistant.Converters" mc:Ignorable="d" 
             Background="{StaticResource HeaderGradientBackground}">
	<UserControl.Resources>
        <Converters:BoolInverseConverter x:Key="BoolInverseConverter" />
    <Converters:AlternativeLocationTextConverter x:Key="AlternativeLocationTextConverter" />
	</UserControl.Resources>
  <Border DockPanel.Dock="Top" Height="35">
    <StackPanel DockPanel.Dock="Left" HorizontalAlignment="Left" Orientation="Horizontal" Height="30">
      <ToggleButton Width="30" Height="30" Margin="5,0" ToolTip="Show all movies. It includes movies which are not in the drive."
                        IsChecked="{Binding DataSource.ShowDrivesMoviesOnly, Converter={StaticResource BoolInverseConverter}}"
                        Style="{StaticResource opacityToggleButton}">
        <ContentControl Content="{StaticResource Internet32Image}"/>
      </ToggleButton>
      <ToggleButton Width="30" Height="30" Margin="5,0" ToolTip="Show drives movie only"
                        IsChecked="{Binding DataSource.ShowDrivesMoviesOnly}"
                        Style="{StaticResource opacityToggleButton}">
        <ContentControl Content="{StaticResource NetworkStorage32Image}"/>
      </ToggleButton>
      <ToggleButton  Width="30" Height="30" Margin="5,0" Style="{StaticResource toggleOptionButtonStyle}"  Cursor="Hand" ToolTip="Show result as grid view"
                 IsChecked="{Binding IsListView}">
        <ContentControl Content="{StaticResource ListViewImage}"/>
      </ToggleButton>
      <ToggleButton x:Name="listView" Width="30" Height="30" Margin="5,0"  Style="{StaticResource toggleOptionButtonStyle}"  Cursor="Hand" ToolTip="Show result as thumbnail view"
                 IsChecked="{Binding IsListView, Converter={StaticResource BoolInverseConverter}}"
                               >
        <ContentControl Content="{StaticResource ThumbnailViewImage}"/>
      </ToggleButton>
      <Button Margin="5,0,0,0" VerticalAlignment="Center" FontWeight="DemiBold" FontSize="14" Content="{Binding DataSource.SelectedMovie, Converter={StaticResource AlternativeLocationTextConverter}}" Command="{Binding DataSource.ShowAlternativeLocationsCommand}" Style="{DynamicResource LinkButtonStyle}"/>
    </StackPanel>
  </Border>
</UserControl>
